Skip to main content

1Z0-510 Real Exam Questions

Oracle ATG Web Commerce 10 Implementation Developer Essentials

86 questions available · Page 1 of 9

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

Which component should a shareable component be registered with?

  1. A

    /atg/multisite/SiteGroupManager

  2. B

    /atg/multisite/SiteConfiguration

  3. C

    /atg/multisite/SharedComponentConfiguration

  4. D

    /atg/nucleus/multisite

Show answer and explanation

Correct answer: A

Explanation

Explanation:
Components are registered with the /atg/multisite/SiteGroupManager using the shareableTypes property.

References:

Question 2 Single choice

What does the following item-descriptor demonstrate?

<gsa-template>
<item-descriptor name = "animal">
<table name = "animals" type = "primary" id-column-name = "id"> <property name = "type" data-type =
"enumerated">
<option value = "squirrel" code = "2">
</property>
</table>
<table name = "animal_address" type = "auxiliary" id-column-name = "id"> <property name = "street" data-
type = "string">
<property name = "city" data-type = "string">
<property name = "state" data-type = "string">
</table>
</item-descriptor>
</gsa-template>
  1. A

    Transient properties

  2. B

    Item descriptor inheritance

  3. C

    On-to-many relationship

  4. D

    One-to-one relationship

Show answer and explanation

Correct answer: D

Explanation

Explanation:
Auxiliary Tables
You can handle some data relationships using auxiliary attribute tables. For example, you could store users and their addresses in two related database tables, as described in the following piece of an XML repository definition:
<item-descriptor name="user">
<table name="dps_user" type="primary" id-column-names="id"> <property name="login" data-
type="string"/>
</table>
<table name="dps_address" type="auxiliary" id-column-names="id"> <property name="address1"/>
<property name="city"/>
<property name="state"/>
<property name="zip"/>
</table>

</item-descriptor>
Each user has a single address. For the purposes of this example, the user information is stored in a separate table from the user's address information.

Note: Primary and Auxiliary Tables

Each item descriptor must have one and only one primary table. The primary table is specified using the type="primary" XML attribute in a <table> tag. The primary table must define a column or columns that
store the repository ID. This column is specified using the id-column-names attribute. For example:

<table name="user" type="primary" id-column-names="id"> properties...
</table>

References:

Question 3 Single choice

How does a developer preserve request scoped objects on redirects?

  1. A

    by adding a_request id parameter to the form as a hidden variable

  2. B

    by setting the synchronized attribute to the form tag so the request doesn't close

  3. C

    by setting setAllowChangeHeadersDuringRedirect to true on DynamicHTTPServletRequest

  4. D

    by calling the SendLocalRedirect() on DynamicHTTPServletRequest object

  5. E

    by setting setRequest to current request on the DynamicHTTPServletRequest Object

Show answer and explanation

Correct answer: A

Explanation

Explanation:
Preserving request scoped objects on redirects
If a request results in a redirect to a local page through the method HttpServletResponse.sendLocalRedirect(), the ATG platform treats the redirect request as part of the original request, and maintains any request-scoped objects associated with that request. To implement this, the ATG platform adds an additional query parameter named_requestid to the redirected URL.

References:

Question 4 Single choice

You've made the following category assignments to your catalogs. Which categories will be displayed if a call is made on allRootCategories on catalog B?

Catalog A:
rootCategories = category1, category2

Catalog B:
rootCategories = category3, category4
rootSubCatalogs = CatalogA

  1. A

    category1, category2, category3, catcgory4

  2. B

    category3, category4 only

  3. C

    category3, category4 are included, category1 and category2 may be included based on configuration of catalog B.

  4. D

    category3, category4 are included, category1 and category2 may be included based on configuration of Catalog A.

Show answer and explanation

Correct answer: A

Explanation

Explanation:
allRootCategories lists of all the root categories in the catalog, including the allRootCategories in the rootSubCatalogs. This is used for display purposes.

Note: Displaying Root Categories

Typically, a catalog home page displays a list of root categories. Unlike other categories, root categories cannot be found through the childCategories property of other categories. Root categories are those that appear in the allRootCategories property of the user's catalog.

References:

Question 5 Single choice

How is the result set cached when a query returns repository items whose item descriptors enable both item caching and query caching?

  1. A

    The query cache stores the repository IDs indexed by the given query and the item cache holds the corresponding repository items indexed by the repository IDs.

  2. B

    The query cache stores both the repository IDs and the-repository items. The item cache is ignored.

  3. C

    The item cache stores the both the repository IDs and the repository items. The query cache is ignored.

  4. D

    Item descriptors can enable either the item cache or the query cache but not both.

Show answer and explanation

Correct answer: A

Explanation

Explanation:
Difference between Item Cache and Query cache

For each item descriptor, an SQL repository maintains two caches:

* Item caches
* Query caches

Item caches hold the values of repository items, indexed by repository IDs. Item caching can be explicitly enabled for each item descriptor.

* Query caches hold the repository IDs of items that match given queries. When a query returns repository items whose item descriptor enables query caching, the result set is cached as follows:

/ The query cache stores the repository IDs.
/ The item cache stores the corresponding repository items.

Question 6 Multiple choice

The business requires that only three Items be shown on the page from a slot even though the slot is populated with many more.

What are two ways to do this?

  1. A

    Not possible. Fix the number of items in the slot.

  2. B

    Limit the number of items served in the slot configuration.

  3. C

    Set the maxItemsDisplayed property on the store configuration.

  4. D

    Advice business to show more as this requirement requires custom code.

  5. E

    Limit the number of items displayed in the properties passed to targeting droplets on the page.

Show answer and explanation

Correct answers: B, E

Explanation

Explanation:
B (not A): You can limit the number of items that can appear in the slot at any one time.
E:
Note: The TargetingForEach servlet bean is a specialized version of the ForEach servlet bean that performs a targeting operation using the targeter component set by its targeter and sourceMap parameters. The TargetingForEach servlet bean displays every item returned by the targeting operation in the manner specified by its output parameter.

maxNumber
If the maxNumber property is set, the targeter only returns at most maxNumber items in the targeting result set. You can use this property as a precaution to prevent loading potentially large result sets into memory.

Question 7 Single choice

What can be done to prevent inventory data deadlocks in the database?

  1. A

    Use inventoryRepository's built locking mechanism to avoid this issue.

  2. B

    No additional step needed. Transaction Manager has a dead lock listener.

  3. C

    It is controlled via the invontoryLockEngine on the Client Lock Manager, which locks the inventory.

  4. D

    Use inventory Manager's acquireinventoryLocks and releaselnventoryLocks methods.

  5. E

    Apply database optimistic locking on the inventory table.

  6. F

    Use Custom extensions to the inventory System.

Show answer and explanation

Correct answer: D

Explanation

Explanation:

Preventing Inventory Deadlocks

InventoryManager includes the acquireInventoryLocks and releaseInventoryLocks methods. These methods can be used to prevent deadlocks in the database, especially if there are multiple ATG Commerce instances concurrently updating inventory.
References:

Question 8 Multiple choice

Identify two functions of the Nucleus.

  1. A

    Nucleus resolves component names to components.

  2. B

    Nucleus provides commerce-specific functionality such as catalog and cart.

  3. C

    Nucleus creates and initializes components.

  4. D

    Nucleus provides application logging capability such as debug, warning, info, error, and trace

Show answer and explanation

Correct answers: A, C

Explanation

Explanation:
A: Nucleus performs one basic operation: resolving component names. Given the name of a component, Nucleus does its best to find or create that component and return it.

C: Name resolution is not a difficult task. Nucleus shows its real power by creating components and hooking them up to other components automatically. This function is invoked when Nucleus is asked to resolve a name of a component that does not yet exist. In this case, Nucleus looks for the appropriate configuration file that describes how to create that component and any other components that it requires.

Note: Nucleus is the Dynamo Application Framework's component model for building applications from JavaBeans. Nucleus lets you assemble applications through simple configuration files that specify what components are used by the application, what parameters are used to initialize those components, and how those components hook up to each other. The ATG Control Center Components window provides a handy way to create, modify, and manage Nucleus components.

Nucleus by itself provides no application-specific functions. The JavaBean components implement all of an application's functionality. Nucleus is the mechanism that gives those components a place to live, and a way for those components to find each other.

References:

Question 9 Single choice

What would be the Ground and Expedited shipping prices for an order of a single item with a price of 15.99 and having a weight of 42 with this configuration (assume no active shipping promotions)?

/atg/commerce/pricing/shippingPricingEngine.Properties:
PreCalculators =\
Calculators/GroundshippingCalculator,\
Calculator/ExpiditedShippingCalculator
postCalculators=calculators/MypostCalculator

/atg/commerce/pricing/calculators/GrowthShippingCalculators.proprties:
$class=atg.commerce.pricing.priceRangeShippingCalculator ignoreShippingMethod=false
shippingmethod=Ground
ranges =\

00.00:15.99:4.50,\
16.00:30.99:6.00,\
31.00:40.99:7.25,\
41.00:MAX_VALUE:10.00

/atg/commerce/pricing/calculators/ExpeditedShippingCalculators.proprties:
$class=atg.commerce.pricing.priceRangeShippingCalculator ignoreShippingMethod=false
shippingmethod=Expedited
ranges =\

00.00:15.99:4.50,\
16.00:30.99:6.00,\
31.00:40.99:7.25,\
41.00:MAX_VALUE:10.00

/atg/commerce/pricing/calculators/MyPostCalculators.properties:
$class=atg.commerce.pricing.FixedPriceShippingCalculator AddAmount=true
ignoreShippingMethod=true
shippingmethod=SpecialSurcharge
amount=4.99

  1. A

    Ground: 4.50, Expedited: 10.00

  2. B

    Ground: 10.00, Expedited: 10.00

  3. C

    Ground: 4.99, Expedited: 4.99

  4. D

    Ground: 9.49, Expedited: 14.99

Show answer and explanation

Correct answer: D

Explanation

Explanation:
For Ground the calculation is 4.50 (Price range is used) + 4.99 (the post calculator always gives this result)
-> 9.49
For Expedited the calculation is 10.00 (Weight range is used) + 4.99 (the post calculator always gives this
result) -> 14.99

Note 1: A ShippingPricingEngine implementation which computes the shipping price for an order. It accomplishes this task by invoking a series of ShippingPricingCalculators which incrementally compute the tax price:

The first step is to allow the preCalculators to manipulate the price. They are invoked in the order in which they appear in the preCalculators list.
The second step is to extract the calculators from any input PricingModels, and invoke them in the order in which they appear in the pPricingModels list.
The last step is to invoke the postCalculators in the order in which they appear in the postCalculators list.

Note 2: The ShippingPricingEngine is a structural component that does not actually calculate shipping prices itself. The actual price calculations are performed by the Pricing Calculator components that are configured as the preCalculators and postCalculators properties of the ShippingPricingEngine.

References:

Question 10 Multiple choice

Which two items can only be created in the ATG Control Center (ACC)?

  1. A

    User profiles, roles, and organizations

  2. B

    Content items

  3. C

    Scenarios and slots

  4. D

    Content Groups

  5. E

    Content Targeters

  6. F

    Workflows

Show answer and explanation

Correct answers: C, F

Explanation

Explanation:

Note: When you start the ATG Control Center, the following screen appears:

References: