IBM C1000-138 Practice Questions with Explanations
Free IBM C1000-138 practice questions. 15 of them, each with the correct answer, a full explanation, and the reason every other option is wrong.
C1000-138 practice questions
Question 1
A developer is working on an API
Which supports the v5c-gateway and wants to also support the datapower-api-gateway.
Which statement is true about selecting a gateway?
- A. Only one gateway type is allowed per API.
- B. Disabling enforce will allow multiple gateways.
- C. Selecting multiple gateways is accomplished in the API Manager.
- D. No changes are needed to switch gateways.
Show answer and explanation ▾
Correct answer: A
An API is tied to one gateway type, so supporting both the v5c-gateway and the datapower-api-gateway needs a separate API for each.
Why the other options are wrong:
- B. Disabling enforce does not allow more than one gateway type per API.
- C. The API Manager does not offer a way to select several gateway types for one API.
- D. Switching gateway types changes how the API is built, so changes are needed.
Question 2
Which statement describes a requirement for monetizing a Product?
- A. An administrator must have both soft and hard rates limits set for the API product.
- B. A billing integration resource must first be configured for the Provider organization.
- C. Any existing free plans for the Product must be disabled.
- D. The Payment Cloud method module must be enabled in the Developer Portal.
Show answer and explanation ▾
Correct answer: B
To monetize a Product, a billing integration resource must first be configured for the provider organization.
Why the other options are wrong:
- A. Soft and hard rate limits are not required for monetization.
- C. Existing free plans do not have to be disabled.
- D. The Payment Cloud method module is not a requirement for monetizing a Product.
Question 3
The DevOps team would like to incorporate API unit testing into the build and deploy step.
What could the API Connect Test application create to allow unit testing of their APIs?
- A. API Hooks
- B. API JUnit snippets
- C. Mock tests
- D. DataPower loopbacks
Show answer and explanation ▾
Correct answer: C
The API Connect Test application lets the team build tests for an API that can be run automatically, so they can be called from the build and deploy step as unit tests.
Why the other options are wrong:
- A. An API hook is a way to trigger tests from outside the Test application; it is not itself the test that checks the API.
- B. JUnit snippets are not the artifact the API Connect Test application provides for this.
- D. DataPower loopbacks are a gateway configuration technique, not something the Test application creates.
Question 4
What is a vanity API endpoint?
- A. The server URL on which the API is running.
- B. The basepath as defined in the OpenAPI definition for the API.
- C. The gateway endpoint at which the API is invoked.
- D. The endpoint that is visible to the Consumer in the Developer Portal.
Show answer and explanation ▾
Correct answer: D
A vanity API endpoint is a custom endpoint address shown to consumers in the Developer Portal in place of the default gateway endpoint, so published APIs display a friendlier URL.
Why the other options are wrong:
- A. The server URL where the API runs is the back-end address, not the vanity endpoint.
- B. The base path is one part of the API URL defined in the OpenAPI document, not a vanity endpoint.
- C. The gateway endpoint is the default address that the vanity endpoint replaces in the portal display.
Question 5
Which statement is true if the admin login has been disabled on the Developer portal?
- A. Registered users will receive email with link to login as admin.
- B. Admin login is still accessible by navigating to /user/iogin?registry_url=/admin.
- C. All users have admin authority when they login.
- D. Published APIs are hidden from all users.
Show answer and explanation ▾
Correct answer: B
Disabling the admin login only hides the admin option from the portal login page. The admin account can still sign in by going directly to the login path with the registry_url=/admin parameter.
Why the other options are wrong:
- A. The portal does not email registered users a link to log in as admin.
- C. Disabling the admin login does not give any other user admin authority.
- D. The setting affects only the admin login form and has no effect on the visibility of published APIs.
Question 6
What is the effect of enabled Spaces for the management of Consumer (applications, subscriptions, etc.)?
- A. There is no visible change.
- B. Only analytics is specific per Space.
- C. Subscription approvals and analytics are specific per Space.
- D. Consumers, applications, subscriptions approvals, and analytics are now specific per Space.
Show answer and explanation ▾
Correct answer: D
A Space is a partition of a Catalog that is managed on its own. With Spaces enabled, the consumer-side management that was done once for the whole Catalog, including applications, subscription approvals and analytics, is handled per Space.
Why the other options are wrong:
- A. Enabling Spaces changes how the Catalog is managed, so there is a visible change.
- B. More than analytics is separated per Space.
- C. The separation is not limited to subscription approvals and analytics.
Question 7
In which case is the customization of a native OAuth provider not immediately ready to be used?
- A. One or more "Transform" policies are used in the assembly.
- B. Grant types are added.
- C. A logic operator is used in the assembly.
- D. A policy with a reference to a TLS profile is added.
Show answer and explanation ▾
Correct answer: D
When the customized assembly of a native OAuth provider includes a policy that references a TLS profile, the provider cannot be used straight away, because the referenced TLS profile must first be available to the gateway service that runs it.
Why the other options are wrong:
- A. Using Transform policies in the assembly does not delay the provider being ready.
- B. Adding grant types is a normal provider setting and takes effect without an extra step.
- C. Logic operators in the assembly do not need any additional resource before the provider is usable.
Question 8
Which set of APIs should be used to register users in the Developer Portal, create applications, and subscribe to APIs?
- A. Management APIs
- B. Consumer APIs
- C. Subscription APIs
- D. Portal Admin APIs
Show answer and explanation ▾
Correct answer: B
The Consumer APIs expose the functions that application developers use in the Developer Portal, including registering users, creating applications and subscribing them to Plans, so they are the set to use for a custom consumer experience.
Why the other options are wrong:
- A. The Management APIs are aimed at provider tasks such as managing Catalogs, Products and API lifecycles.
- C. Subscription APIs is not a separate set of API Connect APIs.
- D. Portal Admin APIs is not the set used for consumer registration, applications and subscriptions.
Question 9
Which statement is correct about migration of a subscribed external application to a new Product?
- A. A Community Manager manages migration of a subscribed external application to a new Product.
- B. The admin of a Developer Portal can enforce the migration to a new Product.
- C. The Consumer manages migration of their subscribed application to a new Product.
- D. The Plans of the new product should be the same or less restrictive than those of the original Product.
Show answer and explanation ▾
Correct answer: C
A subscription belongs to the application of a Consumer organization. For an external application, the Consumer who owns it moves the subscription to a Plan in the new Product.
Why the other options are wrong:
- A. A Community Manager is not the one who manages the migration of an external application to a new Product.
- B. The Developer Portal admin manages the portal site and does not enforce subscription migration.
- D. The Plans of the new Product are not required to be the same as or less restrictive than the original ones.
Question 10
What is correct about using context variables in GatewayScript policies?
- A. context.set('my.vars.amount', 100) generates { "my.vars": { "amount": 100 } }
- B. All API context variables are saved in an XML tree.
- C. context.message.statusCode = '200 Success' updates the status code of the message object.
- D. context.request.statusCode = 400 updates the status code of the request object.
Show answer and explanation ▾
Correct answer: C
The status code belongs to the message object. Assigning a string such as '200 Success' to context.message.statusCode updates the status code together with a custom reason phrase, while assigning an integer updates the code with the default reason.
Why the other options are wrong:
- A. The call creates nested nodes, my containing vars containing amount, not a single property named my.vars.
- B. API context variables are stored in a JSON-like tree, not an XML tree.
- D. Only the message object has the status code property; the request object is read-only and does not have one.
Question 11
Which statement is true when adding extra DataPower enforcement capabilities to a Gateway service?
- A. The DataPower extensibility function does not allow encryption and decryption.
- B. Multiple Gateway extension .zip files may be added to the same Gateway service.
- C. The network route to a physical DataPower device is configured through the API Manager.
- D. More than one Gateway extension .zip file cannot be uploaded to the same Gateway service.
Show answer and explanation ▾
Correct answer: B
A Gateway extension is uploaded to a Gateway service as a .zip file, and more than one extension .zip file can be added to the same Gateway service to supply extra DataPower configuration.
Why the other options are wrong:
- A. DataPower functions such as encryption and decryption can be added through the extension.
- C. Network routing to a physical DataPower appliance is not configured in the API Manager.
- D. A Gateway service is not limited to a single extension .zip file.
Question 12
Which of the following is true for Products?
- A. A Product can be published to selected communities.
- B. A Product must be published before it is staged.
- C. APIs become accessible when a Product is staged on the Developer Portal.
- D. When a Product is staged or published, it is visible for all communities.
Show answer and explanation ▾
Correct answer: A
The visibility settings of a Product control who can see and subscribe to it, so a Product can be published to selected consumer organizations or groups instead of to everyone.
Why the other options are wrong:
- B. Staging comes before publishing, not after it.
- C. A staged Product is not yet visible in the Developer Portal; its APIs become available when it is published.
- D. Visibility is set per Product, so it is not automatically visible to everyone.
Question 13
How are Gateway extensions packaged to upload to the Gateways?
- A. As .tar files
- B. As .cfg files
- C. As .zip files
- D. As .war files
Show answer and explanation ▾
Correct answer: C
A Gateway extension is packaged as a .zip file that holds the DataPower configuration to apply, and that .zip file is uploaded to the Gateway service.
Why the other options are wrong:
- A. Gateway extensions are not uploaded as .tar files.
- B. A .cfg file can be part of the extension content, but the package that is uploaded is not a .cfg file.
- D. A .war file is a Java web application archive and is not used for Gateway extensions.
Question 14
Which statement is true about the use of $ref?
- A. GatewayScript can use $ref instead of included files.
- B. $ref can only be defined in YAML files.
- C. $ref must be defined at the root level of the YAML file.
- D. When an API is published, the $ref is replaced with the contents of the referenced file.
Show answer and explanation ▾
Correct answer: D
A $ref field in an OpenAPI definition points to a fragment of OpenAPI held in a separate file. When the API is published, the $ref field is replaced with the contents of the referenced file.
Why the other options are wrong:
- A. $ref is an OpenAPI reference mechanism and is not used by GatewayScript in place of included files.
- B. $ref is not limited to YAML files.
- C. $ref can be used at different places in the definition, not only at the root level.
Question 15
Who creates applications that use the APIs available in the Developer Portal?
- A. API Developer
- B. API Lifecycle Manager
- C. A member of the Consumer organization
- D. A member of the Provider organization
Show answer and explanation ▾
Correct answer: C
Application developers belong to a Consumer organization. They sign in to the Developer Portal, register applications there and subscribe those applications to the published APIs.
Why the other options are wrong:
- A. The API Developer builds and tests the APIs, not the consuming applications.
- B. This role is not the one that creates consumer applications in the Developer Portal.
- D. Members of the Provider organization build and manage the APIs and Products that consumers use.
That was 15 of 60.
The full IBM C1000-138 pack has all 60 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. $39.00 USD, paid once, with free monthly updates and a pass-or-your-money-back guarantee.
Get the full packNot ready yet? Get the first 20 free as one PDF by email. Get the Half Pack →
About the C1000-138 exam
These 15 IBM C1000-138 questions are free here. The free PDF has 20, free by email.
They are drawn from the same bank as the full C1000-138 pack, which has 60 questions in total.