Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E123 Topic 1 Question 13 Discussion

Actual exam question for Adobe's AD0-E123 exam
Question #: 13
Topic #: 1
[All AD0-E123 Questions]

A developer needs to produce various content fragments depending on some dynamic names and decides to use JAVA code.

Which code snippet should be used to create a new content fragment?

Show Suggested Answer Hide Answer
Suggested Answer: C

In Maven for AEM, application is the packageType that is typically used for immutable code packages. These are packages that contain code that is not expected to change between deployments, such as OSGi bundles and certain content packages that do not contain user-editable content. This type of package is intended to be deployed to an AEM instance as part of the application's codebase, and the application packageType signifies this use case.

container is not a standard package type in AEM Maven project structures.

content is typically used for packages that contain mutable content, such as pages and configurations that can be edited by authors.


Contribute your Thoughts:

Dona
10 days ago
I'm just gonna go with the first option. Anything that involves 'FragrnentTemplate' sounds like it was made up on the spot.
upvoted 0 times
...
Felton
16 days ago
FragrnentTemplate.createFragment()? Really? That sounds more like a typo than a real method. Let's go with option A.
upvoted 0 times
William
3 days ago
I agree, FragrnentTemplate.createFragment() does sound like a typo. Option A seems like the correct choice.
upvoted 0 times
...
...
Crista
19 days ago
Option B looks interesting, but I'm not sure if 'adapt To(Fragment class)' is a valid method. I'll have to double-check the documentation.
upvoted 0 times
...
Florinda
26 days ago
But I think A makes more sense because it directly creates a new content fragment
upvoted 0 times
...
Sherman
27 days ago
I think option A is the correct answer. The 'resource.createFragment()' method seems like the most straightforward way to create a new content fragment.
upvoted 0 times
Bok
6 days ago
I think so too, 'resource.createFragment()' is the way to go.
upvoted 0 times
...
Chauncey
10 days ago
I agree, option A seems like the best choice.
upvoted 0 times
...
...
Rosamond
28 days ago
I disagree, I believe the correct answer is C) FragmentTemplate.createFragment()
upvoted 0 times
...
Florinda
1 months ago
I think the answer is A) resource.createFragment()
upvoted 0 times
...

Save Cancel
a