BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam DEX-450 Topic 9 Question 103 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 103
Topic #: 9
[All DEX-450 Questions]

Which code displays the contents of a Visualforce page as a PDF?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Jean
19 days ago
Haha, these options are like a box of chocolates - you never know what you're gonna get! I'm leaning towards D though.
upvoted 0 times
...
Katina
21 days ago
Ah, the age-old debate of PDF generation in Visualforce. I'll go with B - can't go wrong with good ol' contentType.
upvoted 0 times
Yesenia
8 days ago
I think A is the way to go, using renderAs='pdf'.
upvoted 0 times
...
...
Justine
25 days ago
This is easy! You just need to use the renderAs attribute and set it to 'pdf'. C is the winner!
upvoted 0 times
...
Glory
26 days ago
Hmm, I'm torn between B and D. Definitely one of those two, but I can't decide which is better.
upvoted 0 times
...
Karon
29 days ago
I think D is the correct choice. The renderAs='application/pdf' is the key to generating the PDF.
upvoted 0 times
Armando
15 days ago
I agree, option D with renderAs='application/pdf' is the correct choice.
upvoted 0 times
...
...
Elke
1 months ago
C looks like the right answer to me. renderAs='pdf' is the way to display the Visualforce page as a PDF.
upvoted 0 times
Paz
8 days ago
A: Great, thanks for confirming!
upvoted 0 times
...
Sherell
12 days ago
B: Yes, renderAs='pdf' is the attribute to use for displaying a Visualforce page as a PDF.
upvoted 0 times
...
Josephine
21 days ago
A: I think you're right, C is the correct answer.
upvoted 0 times
...
...
Delisa
1 months ago
I'm pretty sure it's B. The contentType='application/pdf' is the way to go.
upvoted 0 times
Simona
22 days ago
Thanks for confirming. B with contentType='application/pdf' is the correct code.
upvoted 0 times
...
Micah
25 days ago
That makes sense. B is the way to display a Visualforce page as a PDF.
upvoted 0 times
...
Ettie
30 days ago
Yes, B is the correct option. It specifies the content type as PDF.
upvoted 0 times
...
Quentin
1 months ago
I think you're right. B is the correct option.
upvoted 0 times
...
...
Lavelle
2 months ago
I'm not sure, but I think C) could also be a valid option since it mentions rendering as PDF.
upvoted 0 times
...
Stefan
2 months ago
I agree with Ulysses, D) makes sense because it specifies the rendering format as PDF.
upvoted 0 times
...
Ulysses
2 months ago
I think the answer is D)
upvoted 0 times
...

Save Cancel