Exam 9A0-384 All QuestionsBrowse all questions from this exam
Question 15

Which command would you enter in your CQ Component script to get the template path of an AEM page in publish instance?

    Correct Answer: C

    To get the template path of an AEM page in a publish instance, you would use the command 'Page.getTemplate().getPath();'. This command first retrieves the template object associated with the page and then calls the getPath() method on that template object to obtain its path. The other options either do not correctly retrieve the template (like Properties-get) or do not return the path (like Page.getTemplate).

Discussion
starcitynews0023Option: C

Answer is C, Page.getTemplate().getPath();