Where can you find the presentation slides after the training?
Question 1Answer
a.
https://github.com/commercetools
b.
https://learn.commercetools.com/
c.
https://docs.commercetools.com/
d.
https://support.commercetools.com/
e.
https://demo.commercetools.com/
Presentation slides used in the training sessions are made available at the learning portal after the training is finished and marked as complete..
What would you refer to if you need to confirm whether creating a shipping method requires you to provide a tax category or not?
Question 2Answer
https://marketplace.commercetools.com/
API documentation explains each endpoint with its representations, intended usage and fields, required and optional.
Which of the following interfaces can be used to create a new discount?
Question 3Answer
https://mc.{region}.{cloudProvider}.commercetools.com/
https://impex.{region}.{cloudProvider}.commercetools.com/
You can create a discount in the Merchant Center using the rule builder.
You can also create a discount by sending a payload to Discounts endpoint in Impex.
Where can you find the tutorials, for instance the one on how to delete all the products?
Question 4Answer
commercetools tutorials focus on typical e-commerce use cases you would like to realize with the commercetools platform and can be accessed here.
What information does HTTP API Contract document provide you?
Question 5Answer
How commercetools checks API requests being correctly authorized?
What HTTP API requests headers you need to set for an API request?
What limits are imposed on objects and parameters by default?
How commercetools handles platform API versioning?
HTTP API Contract presents the different contracts of the API, versioning and default imposed limits per project.
According to the API contract, what is true about a slug?
Question 6Answer
Must be at least two characters long
Can be empty
Can contain the letter ‘ä’
A Slug must match the pattern [a-zA-Z0-9_\-]{2,256}, hence they are limited to 256 characters.
You created a project a while ago. How can you confirm the number of days left in the trial period of your project?
Question 7Answer
Merchant Center -> Manage projects
Impex -> Project endpoint -> read data
Merchant Center -> Settings -> Project Settings
Impex -> Settings endpoint -> project -> read data
You can list all your projects from Merchant Center -> Manage projects.
You can also get project specific details from the Project endpoint in Impex.
What is true about locales?
Question 8Answer
You can have a description in both locales, en-US and en, even if both descriptions are exactly the same.
You must provide a description in locale en-US only, if the the description for the locale en is the same.
You can only have a description in locale en-US, if you have added US as a country.
Every organization has a default team called Administrators. Using team permissions, what can you restrict?
Question 9Answer
What they see (which menu items)
What resources they can update
Which project(s) they have access to
Nothing
In some countries, total tax is a combination of multiple taxes. For example, in Canada, the total tax may include both federal Goods and Services Tax (GST) and Provincial Sales Tax (PST) or Harmonized Sales Tax (HST), which can be represented as subRates. How do you create a new tax category for these countries?
Question 10Answer
You can create a tax category with tax sub rates in the Merchant Center.
You can create a tax category with tax sub rates via an API request.
You can create a tax category with multiple tax categories nested in it in the Merchant Center.
You can create a tax category with multiple tax categories nested in it via an API request.
A tax category with subRates can be created through the API request or in the Merchant Center.
What does commercetools platform API documentation cover?
Question 11Answer
Contains data representations for each resource together with the HTTP methods for accessing them
Provides information about the intended use of API requests
Lists fields with their types and if a field is required or optional
How would you add two different customers to the same customer group?
create a list of UpdateActions and POST a single Update
create a list of UpdateActions and POST two separate Updates
create two lists of UpdateActions and POST two separate Updates
As you are adding both the customers to the same customer group, you can reuse the same update action list.
What do you need to provide to obtain a token through the client credentials authorization flow? Please choose only the minimum required fields.
email and password of an authenticated user
clientId, clientSecret, and scope
clientId and clientSecret
a refresh token
Issue a request to the auth service, providing your client_id and client_secret via HTTP Basic Authentication where the username is the client_id and the password is the client_secret. Scope is optional.
How do you create a new shipping method using platform API?
POST a shipping method resource
GET a shipping method resource draft
POST a shipping method resource draft
POST an update to /shipping-methods endpoint
Which of the following gives a correct tax category resource draft?
const createTaxCategoryDraft = async () => { return { name:"FancyTax",
description: "Tax for fancy products",
rates: [] }; };
rates: [{ name:"FancyTaxDE",
includedInPrice: true,
country: "DE",
amount:0.19 }] }; };
rates: [{ name:"FancyTaxCA",
includedInPrice: false,
country: "CA",
subRates: [{ name:"RST", amount:0.08 }, { name:"GST", amount:0.05 }] }] }; };
rates: [{ name:"FancyTaxUS",
country: "US",
amount:0.13 }] }; };
Which of the following would update the customer number without any error?
apiRoot .withProjectKey({projectKey}) .customers() .withKey({key: customer.body.key}) .post({ body: { actions: [{action: "setCustomerNumber", customerNumber: "1" }] } }) .execute()
apiRoot .withProjectKey({projectKey}) .customers() .withKey({key: customer.body.key}) .post({ body: { version: customer.body.version, actions: [{action: "setCustomerNumber", customerNumber: "1" }] } }) .execute()
apiRoot .withProjectKey({projectKey}) .customers() .withKey({key: customer.body.key}) .post({ body: { version: customer.body.version, actions: {action: "setCustomerNumber", customerNumber: "1" } } }) .execute()
apiRoot .withProjectKey({projectKey}) .customers() .post({ body: { version: customer.body.version, actions: [{action: "setCustomerNumber", customerNumber: "1" }] } }) .execute()
Which of the following would work without any error?
Assume that setCustomerNumber(customer, customerNumber) function creates the update request without any error.
getCustomerByKey(customerKey) .then(customer => setCustomerNumber(customer,"")) .catch(console.log)
getCustomerByKey(customerKey) .then(customer => setCustomerNumber(customer,"1")) .catch(console.log)
getCustomerByKey(customerKey) .then(customer => setCustomerNumber(customer,"1")) .then(customer => setCustomerNumber(customer,"2")) .catch(console.log)
Which of the following is a feature in the Merchant Center?
Quick Access
Personalized Views
Filters on products, orders, discounts
Which of the following does a customer buy?
Product types
Products
Product variants
Product master variants
Product is an abstract while Product Variants generally represent a distinct SKU or sellable good.
A product type defines an attribute of type localized Enum with three values and “required” and “searchable” options. Assuming that you have two locales in your project, how many product variants can you have for a product of this product type?
a maximum of three
a minimum of three
exactly three
no limit
You sell flowers and want to recommend pots from the catalog which would fit the flower well. What would be an appropriate type for an attribute “recommended_pots” within the flower product type?
Set of References
Enum of References
Set of Strings
Enum of Strings
Nested
Reference allows you to reference other products, product types etc. Creating a set of references to products, in this case, will allow you to create the attribute recommended_pots.
What is true about a product attribute with the constraint “same for all”?
It is stored at product level.
It is stored only on the master variant.
It is stored on all variants with the same value.
It is stored as a custom attribute.
sameforAll constraint ensures that an attribute value is same in all variants.
What is true about the Import API?
You can only update whole product.
You can separately update product and product prices.
ImportRequests are created for creating new resources or updating existing ones.
Posting an ImportRequest imports the resources immediately.
Following is a price import request. Assuming the product and product variant are properly referenced, what issues do you see in this code snippet?
const createImportPricesDraft = async () => { return { type:"price", resources:[{ key: "non-existent-key", value: { centAmount: 1200 }, productVariant: productVariantKeyReference, product: productKeyReference, },] }; };
The key doesn't exist.
There is no country code provided.
There is no currency code provided.
All of the above
What is TRUE about commercetools-project-sync docker image?
Question 14Answer
It can be used sync resources between two commercetools projects.
It can't be used to sync tax categories.
It runs a delta sync by default.
Its source code is available on Github.
Zuletzt geändertvor 11 Stunden