AD5-E112 Flashcards
- Which two are the differences between a production pipeline and a non-production pipeline (Choose Two)
( ) Code quality testing
( ) Security testing
( ) Performance load testing
( ) Acceptance testing
( ) Unit testing
(+) Security testing
(+) Performance load testing
–> See https://experienceleague.adobe.com/docs/experience-manager-cloud-manager/content/using/pipelines/production-pipelines.html?lang=en
The testing section for this stage, while grayed out, is actually permanently enabled, requiring static code, load performance and security testing to complete and pass prior to allowing the artifact to be deployed to production.
- Which command should the Developer use to view the server log?
( ) aio cloudmanager:log ENVIRONMENT_ID SERVER_NAME –programId=PROGRAM_ID
( ) aio cloudmanager:tail-log ENVIRONMENT_ID SERVER_NAME –programId=PROGRAM_ID
( ) aio cloudmanager:view-log ENVIRONMENT_ID SERVER_NAME –programId=PROGRAM_ID
( ) aio cloudmanager:show-log ENVIRONMENT_ID SERVER_NAME –programId=PROGRAM_ID
(+) aio cloudmanager:tail-log ENVIRONMENT_ID SERVER_NAME –programId=PROGRAM_ID
–> See https://github.com/adobe/aio-cli-plugin-cloudmanager#aio-cloudmanagerenvironmenttail-log-environmentid-service-name
- The Code Quality Step for the Non-Production pipeline threw the following error:ISSUE
HTTP requests should always have socket and connect timeoutsRULE
CQRules: Connection TimeoutMechanismThe erroneous code looks as follows:@Reference
private HttpClientBuilderFactoryhttpClientBuilderFactory:
public void test() {
HttpClientBuilder builder
httpClientBuilderFactory.newBuilder();
Httpclient httpClient = builder.build();
// do something with the client
}Select the correct code snippet to replace the above code.( ) public void test() {
URL url= new URL (“http://www.adobe.com”);
URLConnection urlConnection = url.openConnection();BufferedReader in = new BufferedReader (new InoutStreamReader(urlConnection.getInoutStream()))): String inputLine: while((inputLine = in.readLine()) != null) { logger. info(inputLine); } in.close(); }
(+) public void test() {
HttpClientBuilder builder = httpClientBuilderFactory.newBuilder();
RequestConfig requestConfig = RequestConfig.custom()
.setConnectionTimeout(5000)
.setSocketTimeout (5000)
.build();
builder setDefaultRequestConfig(requestConfig);
Httpclient httpClient = builder.build();
// do something with the client
}( ) @Reference
private HttpClientBuilderFactory httpClientBuilderFactory:public void test() {
URL url = new URL(“htto://www.adobe.com”);URLConnection urlConnection = url.openConnection() ; urlConnection.setConnectTimeout(5000); urConnectionn.setReadTimeout(5000); HttpClientBuilder builder = httpclientBuilderFactory.newBuilder(); Httpclient httpClient = builder.build(); // do something with the client }
( ) public void test() {
URL url= new URL(“http.//www.adobe.com”);URLConnection urlConnection = url.openconnection(); BufferedReader in = new BufferedReader (new InputStreamReader(urlConnection.getInoutStream))); String inputLine; while((inputLine = in.readLine)) != null) { logger. info(inputLine); } in.close(); }
(+) public void test() {
HttpClientBuilder builder = httpClientBuilderFactory.newBuilder();
RequestConfig requestConfig = RequestConfig.custom()
.setConnectionTimeout(5000)
.setSocketTimeout (5000)
.build();
builder setDefaultRequestConfig(requestConfig);
Httpclient httpClient = builder.build();
// do something with the client
}
–> See https://experienceleague.adobe.com/docs/experience-manager-cloud-manager/content/using/custom-code-quality-rules.html?lang=en#http-requests-should-always-have-socket-and-connect-timeouts
- Which command should a Developer use to start a pipeline?
( ) PUT /api/program/(programld}/pipeline/(pipelineld}/executions
( ) GET /api/program/{programld}/pipeline/{pipelineld}/execution/{executionId}
( ) GET /api/program/programld;/pipeline/pipelineld›/execution
( ) PUT /api/program/{programId}/pipeline/{pipelineId}/execution
( + ) PUT /api/program/{programId}/pipeline/{pipelineId}/execution
–> See https://developer.adobe.com/experience-cloud/cloud-manager/reference/api/#operation/startPipeline
- A Developer needs to determine if a package is exported by a specific OSGi bundle. How should this be done in AM as a Cloud Service?
( ) Using the Developer Console
( ) Using CRX Explorer
( ) Using the Apache Felix Web Console
( ) Using OSGi Utils
( + ) Using the Developer Console
–> See https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/debugging/debugging-aem-as-a-cloud-service/developer-console.html?lang=en#java-packages
- A developer created a new branch (second) directly in the Cloud Manager Git repository (origin). Which commands should be taken to synchronize the Cloud Manager repository?
( ) git fetch
git checkout -b second origin/second
( ) git pull
git fetch second
( ) git checkout -b second origin/second
git push -u origin master
( ) git commit -am second
git push -u origin master
( + ?) git checkout -b second origin/second
git push -u origin master
- Where does the Developer download the latest developer Quickstart JAR?
( ) Adobe Software Distribution
( ) Adobe PackageShare
( ) Adobe Experience League
( ) Adobe Enterprise Support
(+) Adobe Software Distribution
–> See https://experienceleague.adobe.com/docs/experience-cloud/software-distribution/home.html
- In which situation would you integrate Cloud Manager with Adobe I/O?
( ) Obtaining Asset metadata
( ) Creating an issue report in a bug tracking system after a pipeline failure
( ) Clearing the dispatcher cache after Cloud Manager has deployed
( ) Updating indexes
( + ) Creating an issue report in a bug tracking system after a pipeline failure
–> See https://experienceleague.adobe.com/docs/adobe-developers-live-events/events/2021/oct2021/integrate-aem-io-events.html?lang=en
- Which two run modes are supported in AEM as a Cloud Service? (Choose two.)
( ) QA
( ) Author
( ) Dynamic _Media
( ) Playground
( ) Dev
( + ) Author
( + ) Dev
–> See https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/deploying/overview.html?lang=en#runmodes
OSGI configuration run modes must reference dev, stage, prod for the environment or author, publish for the service. A combination of <service>.<environment_type> is being supported whereas these have to be used in this particular order (for example author.dev or publish.prod)</environment_type></service>
- Which two maintenance tasks in AEM as a Cloud Service can be configured (Choose two)?
( ) Workflow purge
( ) Data Store Garbage collection
( ) Inactive user cleanup
( ) Version purge
( ) Lucene Binary cleanup
( + ) Workflow purge
( + ) Version purge
–> See https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/maintenance.html?lang=en
Adobe manages those maintenance tasks which have settings that are NOT configurable by customers, for example:
- Datastore Garbage Collection (fully Adobe owned)
- Audit Log Purge (customer may issue a support ticket requiring different settings)
- Version Purge (customer may issue a support ticket requiring different settings)
Other maintenance tasks can be configured by customers, as described in the table below.
- Ad-hoc Task Purge
- Workflow Purge
- Project Purge
- The Developer needs to get the whitelisted Apache directives. What should the Developer do?
( ) Run httpd whitelist to print that list
( ) Access the whitelist via Developer Console
( ) Run validator whitelist to print that list
( ) Edit the whitelist directives in the host file
( + ) Run validator whitelist to print that list
–> See https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/content-delivery/disp-overview.html?lang=en#supported-directives
- A new domain of customer.com needs to be added to the default host file. How would this be accomplished in AEM as a Cloud Service?
( ) Add customer.com to the existing default vhost file
( ) Move the host file to the cloud
( ) Copy the existing host file and add customer.com
( ) Use the Dispatcher SDK to add the URL
( +? ) Add customer.com to the existing default vhost file
( +? ) Copy the existing host file and add customer.com
–> See https://blogs.perficient.com/2022/02/15/ip-whitelisting-through-aem-dispatcher-in-5-easy-steps/
Since src/conf.d/available_vhost/aem_author.vhost file is immutable we will create our own client_aem_author.vhost file by copying the original aem_author.vhost file according to https://helpx.adobe.com/experience-manager/kb/ams-dispatcher-manual/immutable-files.html.
- A Developer wants to define a custom rendition for images. What should the Developer do?
( ) Use the ImageMagick plug-in
( ) Use Dynamic Media
( ) Use Processing Profiles
( ) Use Metadata Profiles
( + ) Use Processing Profiles
–> See https://experienceleague.adobe.com/docs/experience-manager-learn/assets/configuring/processing-profiles.html?lang=en
Dynamic Media can be thought of as Photoshop along a URL.
https://experienceleague.adobe.com/docs/experience-manager-learn/assets/dynamic-media/dynamic-media-overview-feature-video-use.html?lang=en
Static renditions are local versions created upon upload.
Dynamic renditions are only created when requested, like when a webpage window requests it using a URL with required presets as arguments.
- A Developer has created a custom processing profile. When an asset was reprocessed, the renditions were NOT generated per the processing profile definition. What should the Developer do?
( ) Apply the processing profile to the workflow
( ) Apply the processing profile to Dynamic Media
( ) Apply the processing profile to the asset
( ) Apply the processing profile to the folder
(+) Apply the processing profile to the folder
- Given the following code snippet in AEM 6.5:@Properties ({
@Property (
label = “Enabled”,
description =”Enable/Disable the Scheduled Service”
name = “service.enabled”
boolValue = true
),
@Property(
label = “Cron expression defining when this scheduled service will run,default 9 AM”,
description = “[every minute 0 * * * * 1, [12:0lam daily = 0 1 0 ]”,
name = “scheduler.expression”
value = “0 0 9 * * ?”
),}); How should the Developer migrate this code to AEM as a Cloud Service?
( ) Use Sling Event Listeners
( ) Use Sling Model Exporters
( ) Use Polling Importer
( ) Use Sling Schedule Jobs
(+) Use Sling Schedule Jobs
–> See “Long Running Jobs” at https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/migration-journey/readiness.html?lang=en